package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 社会捐赠项目对象 tb_project
 * 
 * @author ruoyi
 * @date 2024-04-23
 */
public class TbProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 主图 */
    @Excel(name = "主图")
    private String image;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 副标题 */
    @Excel(name = "副标题")
    private String subtitle;

    /** 帮扶对象 */
    @Excel(name = "帮扶对象")
    private String targets;

    /** 项目备案编号 */
    @Excel(name = "项目备案编号")
    private String code;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date beginTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 目标金额 */
    @Excel(name = "目标金额")
    private BigDecimal targetAmount;

    /** 已募集 */
    @Excel(name = "已募集")
    private BigDecimal currentAmount;

    /** 支持次数 */
    @Excel(name = "支持次数")
    private Long frequency;

    /** 项目介绍 */
    @Excel(name = "项目介绍")
    private String content;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSubtitle(String subtitle) 
    {
        this.subtitle = subtitle;
    }

    public String getSubtitle() 
    {
        return subtitle;
    }
    public void setTargets(String targets) 
    {
        this.targets = targets;
    }

    public String getTargets() 
    {
        return targets;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setBeginTime(Date beginTime) 
    {
        this.beginTime = beginTime;
    }

    public Date getBeginTime() 
    {
        return beginTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setTargetAmount(BigDecimal targetAmount) 
    {
        this.targetAmount = targetAmount;
    }

    public BigDecimal getTargetAmount() 
    {
        return targetAmount;
    }
    public void setCurrentAmount(BigDecimal currentAmount) 
    {
        this.currentAmount = currentAmount;
    }

    public BigDecimal getCurrentAmount() 
    {
        return currentAmount;
    }
    public void setFrequency(Long frequency) 
    {
        this.frequency = frequency;
    }

    public Long getFrequency() 
    {
        return frequency;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("image", getImage())
            .append("title", getTitle())
            .append("subtitle", getSubtitle())
            .append("targets", getTargets())
            .append("code", getCode())
            .append("beginTime", getBeginTime())
            .append("endTime", getEndTime())
            .append("targetAmount", getTargetAmount())
            .append("currentAmount", getCurrentAmount())
            .append("frequency", getFrequency())
            .append("content", getContent())
            .toString();
    }
}
